GtkThemingEngine: Clear the background for .background class
authorCarlos Garnacho <carlosg@gnome.org>
Sat, 23 Oct 2010 22:04:34 +0000 (00:04 +0200)
committerCarlos Garnacho <carlosg@gnome.org>
Sat, 4 Dec 2010 14:38:27 +0000 (15:38 +0100)
gtk/gtkthemingengine.c

index b80592bb89cd7ffee8a93c8f03c1bfd081e798ce..dba82ce522bc0e66a155a680e89d092293cc7a6f 100644 (file)
@@ -1278,6 +1278,13 @@ gtk_theming_engine_render_background (GtkThemingEngine *engine,
                                 SIDE_ALL, junction);
   cairo_clip (cr);
 
+  if (gtk_theming_engine_has_class (engine, "background"))
+    {
+      cairo_set_source_rgba (cr, 1.0, 1.0, 1.0, 0.0); /* transparent */
+      cairo_set_operator (cr, CAIRO_OPERATOR_SOURCE);
+      cairo_paint (cr);
+    }
+
   cairo_translate (cr, x, y);
   cairo_scale (cr, width, height);